﻿using CL.Business.BLL;
using CL.Business.Entity;
using CL.Tools.Common;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CL.UnionWeb.union
{
    public partial class MyPromotion : BasePage
    {
        protected static string Accountid = string.Empty;
        protected AccountEntity Entity = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = "推广联盟-推广";
            Entity = base.GetUnionInfo();
            if (ShowTip())
            {
                return;
            }

            if (!IsPostBack)
            {
                Accountid = ConfigurationManager.AppSettings["ShareUrlHost"] + DESEncrypt.Encrypt(Entity.AccountID.ToString());
            }

            new RecordBLL().InsertEntity(new Business.Entity.RecordEntity()
            {
                AccountID = Entity.AccountID,
                RecordTime = DateTime.Now,
                RecordRemark = string.Format("查看推广链接"),
                RecordType = 5
            });

        }
    }
}